/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
}

/* Navbar (atas) */
.top-header {
  background: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.navbar-container {
  width: 100%;
  max-width: 1400px;
  padding: 0 120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.logo img {
  height: 60px;
  margin-right: 10px;
}

/* Social icons container */
.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Social icons */
.social-icons a {
  color: #000;
  font-size: 22px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.social-icons a:hover {
  color: #1e3a8a;
  transform: scale(1.1);
}

/* Main content background */
main {
  min-height: calc(100vh - 140px);
  background: linear-gradient(to bottom, #1e3a8a, #0f172a);
  color: #fff;
  padding: 60px 120px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Title */
h1 {
  margin-bottom: 30px;
  font-size: 2.5em;
  text-align: center;
  color: white;
}

/* Two-column content wrapper */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  max-width: 1400px;
  width: 100%;
  margin-bottom: 40px;
}

/* ==================== IMAGE SLIDER ==================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #1e3a8a;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 30px 20px 20px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* Slide Indicators */
.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

/* Quicklink grid - 3 columns */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

/* Link items with improved icon-text alignment */
.link-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100px;
}

.link-item i {
  font-size: 28px;
  display: block;
  margin-bottom: 5px;
}

.link-item:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.2);
}

/* Telegram banner with image background + gradient overlay */
.telegram-banner {
  margin-top: 20px;
  background: linear-gradient(to right, rgba(30, 58, 138, 0.85), rgba(15, 23, 42, 0.85)),
    url('https://images.unsplash.com/photo-1636743091340-af4ee8147080?auto=format&fit=crop&w=1000&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 20px 100px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.telegram-text {
  max-width: 70%;
  font-size: 16px;
  line-height: 1.5;
}

/* Telegram button with improved icon-text alignment */
.telegram-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #0088cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  white-space: nowrap;
}

.telegram-button i {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
}

.telegram-button:hover {
  background-color: #3b82f6;
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #ccc;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Main content responsive */
@media (max-width: 1200px) {
  main {
    padding: 60px 80px 40px;
  }

  .content-wrapper {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .slider-container {
    min-height: 350px;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  main {
    padding: 50px 40px 30px;
  }

  h1 {
    font-size: 2em;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .slide-caption {
    font-size: 1.1rem;
    padding: 20px 15px 15px;
  }
}

@media (max-width: 500px) {
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .slider-container {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 40px 20px 20px;
  }

  h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
}

/* Telegram Banner Responsive */
@media (max-width: 1200px) {
  .telegram-banner {
    padding: 20px 80px;
  }
}

@media (max-width: 768px) {
  .telegram-banner {
    padding: 20px 40px;
    flex-direction: column;
    text-align: center;
  }

  .telegram-text {
    max-width: 100%;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .telegram-banner {
    padding: 20px;
  }
}

/* Navbar Container Responsive */
@media (max-width: 1200px) {
  .navbar-container {
    padding: 0 80px;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .social-icons {
    margin-top: 0;
    display: flex;
    gap: 15px;
  }

  .logo img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .social-icons {
    margin-top: 0;
    display: flex;
    gap: 15px;
  }

  .logo img {
    height: 50px;
  }
}